function drawNetwork(locations, badNodes, goodNodes)

    for i=1:length(goodNodes)
        plot( locations(goodNodes(i),1), locations(goodNodes(i),2),'--rs','LineWidth',2,...
            'MarkerEdgeColor','k',...
            'MarkerFaceColor','g',...
            'MarkerSize',10,...
            'Tag','hi')
    
   
        hold on;
    end
     for i=1:length(badNodes)
        plot( locations(badNodes(i),1), locations(badNodes(i),2),'--rs','LineWidth',2,...
            'MarkerEdgeColor','k',...
            'MarkerFaceColor','r',...
            'MarkerSize',10,...
            'Tag','hi')
    
    
        hold on;
    end
    grid on;
    hold on;


end